import request from '@/utils/index.js';

export function getProductList(data){
	return request({
		url: '/front/base/productList',
		method: 'get',
		data: data
	 })
}

//获取产品详情
export function getProductDetail(data){ 
	return request({
		url: `/front/base/getProductDetail/${data}`,
		method: 'get'
	 })
}

// 获取轮播图列表
export function getBannerList(data){
	return request({
		url: '/front/base/bannerList',
		method: 'get',
		data: data
	 })
}

// 获取所有产品分类
export function getTypeList(data){
	return request({
		url: '/front/base/typeList',
		method: 'get',
		data: data
	 })
}

export function getCompany(data){
	return request({
		url: '/front/base/baseInfo/' + data,
		method: 'get'
	 })
}

// 获取手机号
export function getPhone(data){
	return request({
		url: '/oauth',
		method: 'post',
		data: data
	 })
}